package com.groupbuying.provider.dto.convert;

import com.groupbuying.provider.domain.StoreShopDO;
import com.groupbuying.provider.dto.StoreShopDTO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

@Mapper
public interface StoreShopConvert {

    StoreShopConvert MAPPER = Mappers.getMapper(StoreShopConvert.class);

    @Mapping(target = "storeUuid", source = "storeuuid")
    @Mapping(target = "storeName", source = "shopname")
    @Mapping(target = "longitude", source = "lgt")
    @Mapping(target = "latitude", source = "lat")
    @Mapping(target = "consumption", source = "consumption")
    StoreShopDTO doToDTO(StoreShopDO storeShopDO);

}
